package org.xb.SimpleFactory;

public class Main {
    public static void main(String[] args) {
        double total = 1000d;
        CashSuper accept = ClashFactory.createCashAccept("正常收费");
        double v = accept.acceptCash(total);
        System.out.println("正常收费为：" + v);
        CashSuper accept1 = ClashFactory.createCashAccept("满300反100");
        double v1 = accept1.acceptCash(total);
        System.out.println("满300反100为：" + v1);
        CashSuper accept2 = ClashFactory.createCashAccept("打八折");
        double v2 = accept2.acceptCash(total);
        System.out.println("打八折为：" + v2);
    }
}
